home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / C / LinkSrc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  7.2 KB  |  278 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:C:LinkSrc.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emith.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Theory of Operation
  13.  * 
  14.  * 
  15.  *  Classes defined in this interface
  16.  * 
  17.  */
  18.  
  19.  
  20. #ifndef SOM_ODLinkSource_h
  21. #define SOM_ODLinkSource_h
  22.  
  23.  
  24. #include <som.h>
  25.  
  26. /*
  27.  * -- This emitter treats Method Tokens as Thunks by default
  28.  * -- Use the sc modifier "nothunks" to change this default
  29.  */
  30. #undef somresolve_
  31. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  32.  
  33. /*
  34.  * Define the class name as an object type
  35.  */
  36. #ifndef ODLinkSource
  37. #define ODLinkSource SOMObject
  38. #endif
  39. #include <LinkSrcB.h>
  40.  
  41. /*
  42.  * Start of user-defined types:
  43.  */
  44. #ifndef ODExtension
  45.     #define ODExtension SOMObject
  46. #endif /* ODExtension */
  47. #ifndef ODStorageUnit
  48.     #define ODStorageUnit SOMObject
  49. #endif /* ODStorageUnit */
  50. #ifndef ODLink
  51.     #define ODLink SOMObject
  52. #endif /* ODLink */
  53. #ifndef ODPart
  54.     #define ODPart SOMObject
  55. #endif /* ODPart */
  56. #ifndef ODPartList
  57.     #define ODPartList SOMObject
  58. #endif /* ODPartList */
  59. #ifndef ODDraft
  60.     #define ODDraft SOMObject
  61. #endif /* ODDraft */
  62.  
  63. /*
  64.  * End of user-defined types.
  65.  */
  66.  
  67. #define ODLinkSource_MajorVersion 1
  68. #define ODLinkSource_MinorVersion 0
  69.  
  70. /*
  71.  * External name shortening if required
  72.  */
  73. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  74. #define ODLinkSourceNewClass c
  75. #define ODLinkSourceClassData d
  76. #define ODLinkSourceCClassData x
  77. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  78. /*--------------Migration------------*/
  79. #define ODLinkSource_classObj ODLinkSourceClassData.classObject
  80. #define _ODLinkSource ODLinkSource_classObj
  81.  
  82. /*
  83.  * Declare the class creation procedure
  84.  */
  85.  
  86. #if applec ^ PRAGMA_LIB_EXPORT
  87. #pragma lib_export on
  88. #endif
  89.  
  90. SOMEXTERN SOMClass * SOMLINK ODLinkSourceNewClass(integer4 somtmajorVersion,
  91.         integer4 somtminorVersion);
  92.  
  93. /*
  94.  * Declare the class data structure
  95.  */
  96. SOMEXTERN struct ODLinkSourceClassDataStructure {
  97.     SOMAny *classObject;
  98.     somMToken reserved1;
  99.     somMToken reserved2;
  100.     somMToken reserved3;
  101.     somMToken reserved4;
  102.     somMToken reserved5;
  103.     somMToken reserved6;
  104.     somMToken reserved7;
  105. }
  106. #ifdef SOM_NO_DATA_EXPORTS
  107.     * ODLinkSourceGetClassData ( void );
  108. #   undef ODLinkSourceClassData
  109. #   define ODLinkSourceClassData (*ODLinkSourceGetClassData())
  110. #else
  111.       ODLinkSourceClassData;
  112. #endif /* SOM_NO_DATA_EXPORTS */
  113.  
  114. #if applec ^ PRAGMA_LIB_EXPORT
  115. #pragma lib_export off
  116. #endif
  117.  
  118.  
  119. /*
  120.  * Declare the C specific class data structure
  121.  */
  122. SOMEXTERN struct ODLinkSourceCClassDataStructure {
  123.     somMethodTabs parentMtab;
  124.     somDToken instanceDataToken;
  125. } ODLinkSourceCClassData;
  126.  
  127. /*
  128.  * New and Renew macros for ODLinkSource
  129.  */
  130. #define ODLinkSourceNew() \
  131.     ( ( ! (ODLinkSourceClassData.classObject) && \
  132.         (ODLinkSourceNewClass(ODLinkSource_MajorVersion, ODLinkSource_MinorVersion)) ), \
  133.       (_somNew(ODLinkSourceClassData.classObject)) )
  134. #define ODLinkSourceRenew(buf) \
  135.     ( _somRenew(ODLinkSourceClassData.classObject, buf) )
  136.  
  137. /*
  138.  * Override method: somInit
  139.  */
  140. #define ODLinkSource_somInit(somSelf) \
  141.     SOMObject_somInit(somSelf)
  142.  
  143. /*
  144.  * Override method: somUninit
  145.  */
  146. #define ODLinkSource_somUninit(somSelf) \
  147.     SOMObject_somUninit(somSelf)
  148.  
  149. /*
  150.  * Override method: Purge
  151.  */
  152. #define ODLinkSource_Purge(somSelf,ev,size) \
  153.     ODObject_Purge(somSelf,ev,size)
  154.  
  155. /*
  156.  * Override method: Externalize
  157.  */
  158. #define ODLinkSource_Externalize(somSelf,ev) \
  159.     ODPersistentObject_Externalize(somSelf,ev)
  160.  
  161. /*
  162.  * Override method: ReleaseAll
  163.  */
  164. #define ODLinkSource_ReleaseAll(somSelf,ev) \
  165.     ODPersistentObject_ReleaseAll(somSelf,ev)
  166.  
  167. /*
  168.  * Override method: Lock
  169.  */
  170. #define ODLinkSource_Lock(somSelf,ev,wait,key) \
  171.     ODBaseLinkSource_Lock(somSelf,ev,wait,key)
  172.  
  173. /*
  174.  * Override method: Unlock
  175.  */
  176. #define ODLinkSource_Unlock(somSelf,ev,key) \
  177.     ODBaseLinkSource_Unlock(somSelf,ev,key)
  178.  
  179. /*
  180.  * Override method: GetContentStorageUnit
  181.  */
  182. #define ODLinkSource_GetContentStorageUnit(somSelf,ev,key) \
  183.     ODBaseLinkSource_GetContentStorageUnit(somSelf,ev,key)
  184.  
  185. /*
  186.  * Override method: ContentChanged
  187.  */
  188. #define ODLinkSource_ContentChanged(somSelf,ev,id) \
  189.     ODBaseLinkSource_ContentChanged(somSelf,ev,id)
  190.  
  191. /*
  192.  * Override method: Clear
  193.  */
  194. #define ODLinkSource_Clear(somSelf,ev,id,key) \
  195.     ODBaseLinkSource_Clear(somSelf,ev,id,key)
  196.  
  197. /*
  198.  * Override method: GetChangeID
  199.  */
  200. #define ODLinkSource_GetChangeID(somSelf,ev) \
  201.     ODBaseLinkSource_GetChangeID(somSelf,ev)
  202.  
  203. /*
  204.  * Override method: SetAutoUpdate
  205.  */
  206. #define ODLinkSource_SetAutoUpdate(somSelf,ev,automatic) \
  207.     ODBaseLinkSource_SetAutoUpdate(somSelf,ev,automatic)
  208.  
  209. /*
  210.  * Override method: IsAutoUpdate
  211.  */
  212. #define ODLinkSource_IsAutoUpdate(somSelf,ev) \
  213.     ODBaseLinkSource_IsAutoUpdate(somSelf,ev)
  214.  
  215. /*
  216.  * Override method: GetLink
  217.  */
  218. #define ODLinkSource_GetLink(somSelf,ev) \
  219.     ODBaseLinkSource_GetLink(somSelf,ev)
  220.  
  221. /*
  222.  * Override method: SetSourcePart
  223.  */
  224. #define ODLinkSource_SetSourcePart(somSelf,ev,sourcePartSU) \
  225.     ODBaseLinkSource_SetSourcePart(somSelf,ev,sourcePartSU)
  226.  
  227. /*
  228.  * Override method: ShowSourceContent
  229.  */
  230. #define ODLinkSource_ShowSourceContent(somSelf,ev) \
  231.     ODBaseLinkSource_ShowSourceContent(somSelf,ev)
  232.  
  233. /*
  234.  * Override method: GetChangeTime
  235.  */
  236. #define ODLinkSource_GetChangeTime(somSelf,ev) \
  237.     ODBaseLinkSource_GetChangeTime(somSelf,ev)
  238.  
  239. /*
  240.  * Override method: CloneTo
  241.  */
  242. #define ODLinkSource_CloneTo(somSelf,ev,draftKey,destDraft,newSourcePartSU) \
  243.     ODBaseLinkSource_CloneTo(somSelf,ev,draftKey,destDraft,newSourcePartSU)
  244. #ifndef SOM_DONT_USE_INHERITED_MACROS
  245. #define ODLinkSource_InitPersistentObject ODPersistentObject_InitPersistentObject
  246. #define ODLinkSource_InitPersistentObjectFromStorage ODPersistentObject_InitPersistentObjectFromStorage
  247. #define ODLinkSource_GetStorageUnit ODPersistentObject_GetStorageUnit
  248. #define ODLinkSource_GetID ODPersistentObject_GetID
  249. #define ODLinkSource_InitRefCntObject ODRefCntObject_InitRefCntObject
  250. #define ODLinkSource_IncrementRefCount ODRefCntObject_IncrementRefCount
  251. #define ODLinkSource_Release ODRefCntObject_Release
  252. #define ODLinkSource_GetRefCount ODRefCntObject_GetRefCount
  253. #define ODLinkSource_InitObject ODObject_InitObject
  254. #define ODLinkSource_IsInitialized ODObject_IsInitialized
  255. #define ODLinkSource_HasExtension ODObject_HasExtension
  256. #define ODLinkSource_GetExtension ODObject_GetExtension
  257. #define ODLinkSource_ReleaseExtension ODObject_ReleaseExtension
  258. #define ODLinkSource_SubClassResponsibility ODObject_SubClassResponsibility
  259. #define ODLinkSource_somFree SOMObject_somFree
  260. #define ODLinkSource_somGetClass SOMObject_somGetClass
  261. #define ODLinkSource_somGetClassName SOMObject_somGetClassName
  262. #define ODLinkSource_somGetSize SOMObject_somGetSize
  263. #define ODLinkSource_somIsA SOMObject_somIsA
  264. #define ODLinkSource_somIsInstanceOf SOMObject_somIsInstanceOf
  265. #define ODLinkSource_somRespondsTo SOMObject_somRespondsTo
  266. #define ODLinkSource_somDispatchV SOMObject_somDispatchV
  267. #define ODLinkSource_somDispatchL SOMObject_somDispatchL
  268. #define ODLinkSource_somDispatchA SOMObject_somDispatchA
  269. #define ODLinkSource_somDispatchD SOMObject_somDispatchD
  270. #define ODLinkSource_somDispatch SOMObject_somDispatch
  271. #define ODLinkSource_somClassDispatch SOMObject_somClassDispatch
  272. #define ODLinkSource_somPrintSelf SOMObject_somPrintSelf
  273. #define ODLinkSource_somDumpSelf SOMObject_somDumpSelf
  274. #define ODLinkSource_somDumpSelfInt SOMObject_somDumpSelfInt
  275. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  276.  
  277. #endif       /* SOM_ODLinkSource_h */
  278.